package com.woniuxy.controller;


import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class MyFirstController implements Controller {

    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        //后面再解释！
        ModelAndView modelAndView = new ModelAndView();
//        modelAndView.addObject("msg","芜湖，起飞！");
//        modelAndView.setViewName("/index.jsp");
//        return modelAndView;
//        request.setCharacterEncoding("UTF-8");
//        String username = request.getParameter("username");
//        String password = request.getParameter("password");
//        modelAndView.addObject("username",username);
//        modelAndView.addObject("password",password);
//        modelAndView.setViewName("/WEB-INF/jsp/success.jsp");
        return null;
    }
}
